Found the reason why.
I had a locally cached database that was in conflict with the model (I changed the type of an attribute).
I removed the cache as explained here and that fixed the issue
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: